<?php
include_once ("../addlogic.php");
include_once("rdfclass/rdflink.php");

// rdf for a blog url
if (isset($_GET['brdf']) == true ) 
{

$feedfid = $_GET['brdf'];

$blogurl = blogurlrdf ($feedfid);
$topfivedatardf  = displaytopfiverdf ($feedfid);
$rdffoafinterest = fofinterestrdf ($topfivedatardf);


//  rdf for a blog url;
$rdfblog = new RDF();
$rdfblog->rdfset = 2;
$rdfblog->wrdffoafinterest = $rdffoafinterest;
$rdfblog->rdfblogtitle = $blogurl;
echo $rdfblog->getrdfdef(1);

} // closes if


// rdf for a definition
elseif (isset($_GET['ldid']) == true )  
{

$defid = $_GET['ldid'];

$defdbpedia = definword ($defid);
$defwikipedia = definword ($defid);

$wdpeidala = definitionrdf ($defid, $defdbpedia, $defwikipedia);
//echo $wdpeidala; 

//echo 'rdf definition xm';
$rdf = new RDF();
$rdf->rdfset = 1;
$rdf->label = $defwikipedia;
$rdf->wdpeidal = $wdpeidala;
echo $rdf->getrdfdef($defid);

}

?>
